/*
* 入口js
* */
import React from 'react'
import ReactDOM from 'react-dom'
import {BrowserRouter, Route, Switch} from 'react-router-dom'
import {Provider} from 'react-redux'

import store from './redux/store'
import Register from './containers/register/register'
import Login from './containers/login/login'
import Main from './containers/main/main'


import './assets/css/index.css'

// 测试使用
// import './test/socketio_test'



ReactDOM.render((
    <Provider store={store}>
        <BrowserRouter>
            <Switch>
                <Route path='/register' component={Register}></Route>
                <Route path='/login' component={Login}></Route>
                <Route component={Main}></Route>  {/*默认组件*/}
            </Switch>
        </BrowserRouter>
    </Provider>
), document.getElementById('root'))